package com.demo.proxy;

/**
 * 代理类-静态代理
 * @author Administrator
 *
 */
public class UserBizProxy extends UserBiz {
	public void before(){
		System.out.println("开始写日志");
	}
	public void after(){
		System.out.println("日志写入完成");
	}
	//重写保存
	public void save(){
		before();
		super.save();
	}
	public String query(){
		before();
		String result=super.query();
		after();
		return result;
	}
}
